
function changeFodMenu(obj)
{
	var p = obj.parentNode.parentNode.parentNode.id;
    var plist = obj.parentNode.parentNode.getElementsByTagName("span");
    var info = p+"Info";
    var fodinfo = document.getElementById(info).getElementsByTagName("div");
    for(i=0;i<plist.length;i++)
    {
       if(obj == plist[i])
       {
		  plist[i].parentNode.className = "DaoHaoTopLink2";
		  fodinfo[i].style.display = "";
       }
       else
       {
		  plist[i].parentNode.className = "DaoHaoTopHover2";
		  fodinfo[i].style.display = "none";
       }
    }
}



function changeFod(obj)
{
    var p = obj.parentNode.parentNode.id;
    var plist = obj.parentNode.getElementsByTagName("LI");
    var info = p+"Info";
    var fodinfo = document.getElementById(info).getElementsByTagName("div");
	
    for(i=0;i<plist.length;i++)
    {
       if(obj == plist[i])
       {
		  plist[i].className = "active";
		  fodinfo[i].className = "box3";
       }
       else
       {
		  plist[i].className = "";
		  fodinfo[i].className = "box3_hidden";
       }
    }
}
function changeFodHits(obj)
{
    var p = obj.parentNode.id;
    var plist = obj.parentNode.getElementsByTagName("div");
    var info = p+"Info";
    var fodinfo = document.getElementById(info).getElementsByTagName("div");
	
    for(i=0;i<plist.length;i++)
    {
       if(obj == plist[i])
       {
		  plist[i].className = "box_phbj";
		  fodinfo[i].style.display = "";
       }
       else
       {
		  plist[i].className = "box_rph";
		  fodinfo[i].style.display = "none";
       }
    }
}
function changeFodInfo(obj)
{
    var p = obj.parentNode.id;
    var plist = obj.parentNode.getElementsByTagName("ul");
    var info = p+"Info";
    var fodinfo = document.getElementById(info).getElementsByTagName("div");
	
    for(i=0;i<plist.length;i++)
    {
       if(obj == plist[i])
       {
		  plist[i].className = "bj";
		  fodinfo[i].style.display = "";
		  if(fodinfo[0].style.display=="")
		  {
			  document.getElementById("moveBascContent").style.display = "";
			  document.getElementById("allplayaddress").style.display = "";
			  document.getElementById("userCriticism").style.display = "";
		  }
       }
       else
       {
		  plist[i].className = "";
		  fodinfo[i].style.display = "none";
		  if(fodinfo[0].style.display=="none")
		  {
			  document.getElementById("moveBascContent").style.display = "none";
			  document.getElementById("allplayaddress").style.display = "none";
			  document.getElementById("userCriticism").style.display = "none";
		  }
 
       }
    }
}

function my$(tig)
{
  return document.getElementById(tig);
}
function myv(tig)
{
	return my$(tig).value;
}
function myint(value)
{
	return parseInt(value);
}
function myreplace(stra,strb,strc)
{
	var re = new RegExp(strb,"g");
 
	str=stra.replace(re,strc);
	return str;
}

function setcollect(title,url)
{
	window.external.addFavorite(url, title);
}
function setautocollect()
{
	var title=document.title;
	var url=document.location+"";
	window.external.AddFavorite(url,title);
}
function setautohomePage()
{
   var url=document.location+"";
   url=url.replace(/(#)/g,""); 
   this.homepage.style.behavior='url(#default#homepage)';
   this.homepage.sethomepage(url);
}
